package com.caiju.health.service.impl;

import com.caiju.health.entity.PageResult;
import com.caiju.health.mapper.ICheckItemMapper;
import com.caiju.health.mapper.IUserMapper;
import com.caiju.health.pojo.CheckItem;
import com.caiju.health.pojo.User;
import com.caiju.health.service.ICheackItemService;
import com.caiju.health.service.IUserService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements IUserService {

    @Resource
    private IUserMapper userMapper;

    @Override
    public User findUser(User user) {
       return userMapper.findUser(user);

    }

    @Override
    public void addUser(User user) {
        userMapper.addUser(user);
    }

    @Override
    public void updateUser(User user) {
        userMapper.updateUser(user);
    }
}
